package com.jandar.pile.common.util;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : cyt
 * @date : 2019/3/13
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PageBundle {
    private Integer page;

    private Integer size;

    private Integer start;

    public int getStart() {
        return (page - 1) * size;
    }
}
